#ifndef PIC_H_
#define PIC_H_

/*Master PIC data port and command port.*/
#define M_PIC_C 0x20
#define M_PIC_D 0x21

/*Slave PIC data port and command port.*/
#define S_PIC_C 0xA0
#define S_PIC_D 0xA1

#define PIC_ICW1 0x11
#define PIC_ICW3_M 0x04
#define PIC_ICW3_S 0x02
#define PIC_ICW4 0x03

#define M_PIC_DIS 0xFB
#define S_PIC_DIS 0xFF

#define IRQ0_BUFF 0x20
#define IRQ8_BUFF 0x28

#define pic_wait()	asm volatile("nop; nop; nop");

void pic_init(void);

#endif /* PIC_H_ */

